package com.ruoyi.management.caronlinemonitor.controller;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.management.basics.controller.BaseExtController;
import com.ruoyi.management.branch.domain.TBranch;
import com.ruoyi.management.caronlinemonitor.ro.GetCarOnLineMonitorParam;
import com.ruoyi.management.caronlinemonitor.service.CarOnLineMonitorService;
import com.ruoyi.management.caronlinemonitor.vo.GetCarOnLineMonitorVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 * @description: 车辆在线监控
 * @author: xly
 * @date: 2021-12-27
 */
@Api(tags = "管理端--车辆在线监控")
@RestController
@RequestMapping("/management")
public class CarOnLineMonitorController extends BaseExtController {

    @Autowired
    private CarOnLineMonitorService carOnLineMonitorService;

    @ApiOperation("车辆在线监控列表")
    @GetMapping("/list")
    public TableDataInfo list(@Valid GetCarOnLineMonitorParam param)
    {
        startPage();
        List<GetCarOnLineMonitorVo> list = carOnLineMonitorService.list(param);
        return getDataTable(list);
    }
}
